package com.how2java.pojo;

public class Category {
 
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        System.out.println("IOC容器实例化时,读取bean配置,调用Category的setName方法为bean的name属性赋值!");
        this.name = name;
    }
    private int id;
    private String name;

    public Category() {
        System.out.println("Category init!");
    }
}